找不到模块node_modules \ @ ionic\app-scripts IONIC 3 [英] Cannot find module node_modules\@ionic\app-scripts IONIC 3
问题描述
我已经安装 npm 3.10.10
然后我已经安装了离子3.9.2
和 cordova 7.0.1
。
我尝试了以下步骤:
-
ionic start newProject
(选择标签项目)
-
离子发送
此命令将抛出
错误
错误:找不到模块
'E:\ firstirstject @\
ode_modules \ @ ionic\app-scripts'
我发现只有这个帖子
编辑2 :(在sampath回答后)
- 我做了以下更改
我删除了`@ ionic / app-scripts:2.1.4`
-
$ npm install @ ionic / app-scripts @ latest --save-dev
发布$ npm install @ ionic / app-scripts @ latest --save-dev,package.json
文件将如下所示
请提前帮助我!
删除@ ionic / app-scripts:2.1.4
首先来自你的 package.json
文件。
根据你的离子信息
,你有 app-scripts
的问题。所以你可以安装最新的
,如图所示下面。
并在编译之后:
npm install @ionic / app-scripts @ latest --save-dev
删除@ ionic / app-scripts:2.1.4
首先来自你的 package.json
文件。
更新 来自Git
在Windows上运行,您可以尝试:
-
在本地命令窗口中设置环境并验证问题:
设置OPENSSL_CONF = c:\dummy
npm -v
=>您现在可能会看到此ssl错误消息
-
删除环境并验证问题是否已消失:
设置OPENSSL_CONF = npm -v
=>没有ssl错误消息
I have installed npm 3.10.10
then i have installed ionic 3.9.2
and cordova 7.0.1
.
i have tried the following steps:
ionic start newProject
(selected a tabs project)
ionic serve
this command will throw
the error
Error: Cannot find module 'E:\firstProject\node_modules\@ionic\app-scripts'
i found only this thread Error: Cannot find module '@ionic/app-scripts'.
i don't want to downgrade my nodejs version,as i want to use latest feature
but i tried,
npm i @ionic/app-scripts
(SAG Answer)
i'm getting same error
after executing above command
please help me without downgrading nodejs
version
EDIT 1 (as per sampath suggestion) : below is my package.json
file
{
"name": "firstProject",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "4.1.3",
"@angular/compiler": "4.1.3",
"@angular/compiler-cli": "4.1.3",
"@angular/core": "4.1.3",
"@angular/forms": "4.1.3",
"@angular/http": "4.1.3",
"@angular/platform-browser": "4.1.3",
"@angular/platform-browser-dynamic": "4.1.3",
"@ionic-native/core": "3.12.1",
"@ionic-native/splash-screen": "3.12.1",
"@ionic-native/status-bar": "3.12.1",
"@ionic/storage": "2.0.1",
"ionic-angular": "3.6.0",
"ionicons": "3.0.0",
"rxjs": "5.4.0",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.12"
},
"devDependencies": {
"@ionic/app-scripts": "2.1.4",
"typescript": "2.3.4"
},
"description": "An Ionic project"
}
when i run ionic info
it is giving some kind of error
$ ionic info
EDIT 2: (After sampath Answer)
- i did the following changes
i removed `"@ionic/app-scripts": "2.1.4"`
$ npm install @ionic/app-scripts@latest --save-dev
post $ npm install @ionic/app-scripts@latest --save-dev , package.json file will look like below
please help me thanks in advance!!!!
Remove "@ionic/app-scripts": "2.1.4"
from your package.json
file firstly.
According to your ionic info
, you have a problem with app-scripts
.So you can install latest
as shown below.
and after that compile:
npm install @ionic/app-scripts@latest --save-dev
Remove "@ionic/app-scripts": "2.1.4"
from your package.json
file firstly.
Update from Git
Running on Windows you might try:
Set environment in local command window and verify problem:
set OPENSSL_CONF=c:\dummy
npm -v
=> you now probably see this ssl error message
Remove environment and verify problem is gone:
set OPENSSL_CONF=npm -v
=> no ssl error message
这篇关于找不到模块node_modules \ @ ionic\app-scripts IONIC 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!