i have a problem when when I install ionic I get an error
my error is this
iMac-de-TALLERMAC1:Users TALLERMAC1$ sudo npm install ionic@legacy
npm WARN saveError ENOENT: no such file or directory, open '/Users/package.json’
npm WARN enoent ENOENT: no such file or directory, open '/Users/package.json’
npm WARN Users No description
npm WARN Users No repository field.
npm WARN Users No README data
npm WARN Users No license field.
- ionic@2.2.3
updated 1 package in 46.467s
Where did you get this command from?
Adding -g
to install the CLI globally will probably fix your problem.
Also probe adding -g and error
iMac-de-TALLERMAC1:~ TALLERMAC1$ sudo npm install ionic@legacy -g
Password:
Sorry, try again.
Password:
/Users/TALLERMAC1/.npm-packages/bin/ionic →
/Users/TALLERMAC1/.npm-packages/lib/node_modules/ionic/bin/ionic
fsevents@1.1.2 install
/Users/TALLERMAC1/.npm-packages/lib/node_modules/ionic/node_modules/fsevents
node install
[fsevents] Success:
“/Users/TALLERMAC1/.npm-packages/lib/node_modules/ionic/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node”
already installed
Pass --update-binary to reinstall or --build-from-source to recompile
added 395 packages, removed 323 packages and updated 43 packages in 60.46s
iMac-de-TALLERMAC1:~ TALLERMAC1$ ionic start miaplicacion --v2
-bash: ionic: command not found
Please edit your post and use the </>
button above the post input field to format your code or error message or wrap it in ```
(“code fences”) manually. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.
What does npm list -g depth=0
return?
I think the problem is the sudo
stuff.